package ru.cod.rs.main;

import ru.cod.rs.R;
import ru.cod.rs.main.activities.GameActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import static android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN;

public class MainActivity extends Activity {

	/*
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(FLAG_FULLSCREEN, FLAG_FULLSCREEN);
		
		setContentView(R.layout.main);
	}

	public void closeApp(View v) {
		finish();
	}
	
	public void gotoGame(View v) {
		Intent game=new Intent(this,GameActivity.class);
		startActivity(game);
	}
}
